import request from "@/services";
import md5 from "md5";
const creadata = 'xhjmmj'

export const postlogin=(data)=>{
  const result = data.adminname == 'admin'?data:{...data,password:md5(data.password+creadata)}
  return request.post('/admin/login',result)
}